collect (one's) thoughts

Translations
rassembler ses esprits
Definitions
To take a moment to organize and clarify one's ideas or feelings, often in order to make a decision or respond thoughtfully.